<?php if ($this->sidebar_recommend_users_topics) { ?>
<div class="aw-mod interest-user">
	<div class="mod-head"><h3><?php _e('可能感兴趣的人或话题'); ?></h3></div>
	<div class="mod-body">
	    <?php foreach($this->sidebar_recommend_users_topics AS $key => $val) { ?>
	    <?php if ($val['topic_id']) { ?>
	    <dl>
			<dt class="pull-left aw-border-radius-5">
				<a href="topic/<?php echo $val['url_token']; ?>"><img alt="<?php echo $val['topic_title']; ?>" src="<?php echo get_topic_pic_url('mid', $val['topic_pic']); ?>" /></a>
			</dt>
			<dd class="pull-left">
				<span class="topic-tag">
					<a href="topic/<?php echo $val['url_token']; ?>" class="text"><?php echo cjk_substr($val['topic_title'], 0, 8, 'UTF-8', '...'); ?></a>
				</span>&nbsp;
				<a class="icon-inverse follow tooltips icon icon-plus" data-placement="bottom" title="" data-toggle="tooltip" data-original-title="<?php _e('关注'); ?>" onclick="AWS.User.follow($(this), 'topic', <?php echo $val['topic_id']; ?>);AWS.ajax_request(G_BASE_URL + '/account/ajax/clean_user_recommend_cache/');"></a>
				<p><?php if ($val['focus_users']['user_name']) { ?><a href="people/<?php echo $val['focus_users']['url_token']; ?>" class="aw-user-name" data-id="<?php echo $val['focus_users']['uid']; ?>"><?php echo $val['focus_users']['user_name']; ?></a> <?php _e('关注了该话题'); ?><?php } ?></p>
			</dd>
		</dl>
		<?php } else { ?>
		<dl>
			<dt class="pull-left aw-border-radius-5">
				<a href="people/<?php echo $val['url_token']; ?>" data-id="<?php echo $val['uid']; ?>" class="aw-user-name"><img alt="<?php echo $val['user_name']; ?>" src="<?php echo get_avatar_url($val['uid'], 'min'); ?>" /></a>
			</dt>
			<dd class="pull-left">
				<a href="people/<?php echo $val['url_token']; ?>" data-id="<?php echo $val['uid']; ?>" class="aw-user-name"><span><?php echo $val['user_name']; ?></span><?php if ($val['verified']) { ?><i class="icon-v<?php if ($val['verified'] == 'enterprise') { ?> i-ve<?php } ?>" title="<?php if ($val['verified'] == 'enterprise') { ?>企业认证<?php } else { ?>个人认证<?php } ?>"></i><?php } ?></a>
				<a class="icon-inverse follow tooltips icon icon-plus" data-placement="bottom" title="" data-toggle="tooltip" data-original-title="<?php _e('关注'); ?>" onclick="AWS.User.follow($(this), 'user', <?php echo $val['uid'];?>);AWS.ajax_request(G_BASE_URL + '/account/ajax/clean_user_recommend_cache/');"></a>
				<p class="signature"><?php echo $val['signature']; ?></p>
				<p><?php if ($val['type'] == 'friend') { ?><a href="people/<?php echo $val['friend_users']['url_token']; ?>" class="aw-user-name" data-id="<?php echo $val['friend_users']['uid']; ?>"><?php echo $val['friend_users']['user_name']; ?></a> <?php _e('关注了 TA'); ?><?php } else if ($val['type'] == 'topic') { ?><?php _e('TA 也关注'); ?> <a href='topic/<?php echo $val['topic_info']['url_token']; ?>'><?php echo $val['topic_info']['topic_title']; ?></a><?php } ?></p>
			</dd>
		</dl>
		<?php } ?>
		<?php } ?>
	</div>
</div>
<?php } ?>